package com.foxie.type;

public class TypeDemo2 {
    public static void main(String[] args) {

    }
    public static double calc(int a,int b,double c,byte d){
       return a+b+c+d;
    }
//    需求：接收各种类型的数据运算
    public static int calc2(byte a,byte b){
        return a+b;
    }
    public static byte calc3(byte a,byte b){
        byte c = (byte) (a+b);
        return c;
    }
}
